x86/shadow: fix PAE check for top-level table unshadowing
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Feb 2023 15:59:54 +0000 (16:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Feb 2023 15:59:54 +0000 (16:59 +0100)
commit2d74e7035bd060d662f1c4f8522377be8021be92
tree5ca89f54748af9c1d934ed63fd9527042154c7b7
parente904d8ae01a0be53368c8c388f13bf4ffcbcdf6c
x86/shadow: fix PAE check for top-level table unshadowing

Clearly within the for_each_vcpu() the vCPU of this loop is meant, not
the (loop invariant) one the fault occurred on.

Fixes: 3d5e6a3ff383 ("x86 hvm: implement HVMOP_pagetable_dying")
Fixes: ef3b0d8d2c39 ("x86/shadow: shadow_table[] needs only one entry for PV-only configs")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: f8fdceefbb1193ec81667eb40b83bc525cb71204
master date: 2023-01-20 09:23:42 +0100
xen/arch/x86/mm/shadow/multi.c